package ui.components;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 15.12.2008
 * Time: 15:47:57
 */
public class TitledButton extends JPanel {
    private JButton button;
    private JTextField label;
    public TitledButton(String title, String buttonTitle) {
        this.setLayout(new BorderLayout(5, 5));
        this.add(label = new JTextField(title, 15), BorderLayout.CENTER);
        label.setEditable(false);
        this.add(button = new JButton(new ImageIcon("./icons/magnifier.png")), BorderLayout.EAST);
    }

    public JButton getButton() {
        return button;
    }

    public JTextField getLabel() {
        return label;
    }
}
